package io.github.harmonly.util;

import io.github.harmonly.entity.User;

public class RoleUtil {

    public static String getName(User user) {
        String role = user.getRole();
        if (role.equals("member")) return "社团成员";
        if (role.equals("student")) return "学生";
        if (role.equals("master")) return "社长";
        if (role.equals("admin")) return "管理员";
        return "NULL";
    }
}
